<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=request.getContextPath()+"/"%>">

<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        input {display: inline}
        span {display: inline}
    </style>
    <script type="text/javascript">
        function checkform(tmp_form) {
            var err = document.getElementById('tips');
            if(form1.pname.value == "") {
                err.innerHTML = "<font color = red>请输入岗位名称</font>";
                form1.pname.focus();
                return false;
            }
            if(form1.pdesc.value == "") {
                err.innerHTML = "<font color = red>请输入岗位描述</font>";
                form1.pdesc.focus();
                return false;
            }
            return true;
        }

    </script>

</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">人事管理</a></li>
    <li><a href="#">添加岗位</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    <div class="formtitle"><span>基本信息</span></div>
    <form name="form1" action="ptu/PositionServlet?method=positionSave" method="post" onsubmit="return checkform();">

        <ul class="forminfo">
        <li><label>岗位名称</label><input name="pname" type="text" class="dfinput" /></li>
        <li><label>岗位描述</label><input name="pdesc" type="text" class="dfinput" /></li>
        <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认保存"/></li>
        </ul>
    </form>

    </div>


</body>

</html>
